{template head}
<script type="text/javascript" src="{STATICDIR}third/plupload/plupload.full.min.js"></script>
<script type="text/javascript">
function submitcheck()
{
	return true;
}

function saveInfo()
{
	if(!submitcheck())
	{
		return;
	}
	var url = '{SITE_URL}ajax/index.php?m=saveYaoqing';
	var data = $('#savedata').serialize();
		
	var callback = function(data)
	{
		if(data.sign == -2)
		{
			window.location = data.url;
		}
		else
		{
			if(data.sign == 1)
			{
				//添加成功,返回列表页
				layer.alert(data.msg,function(){
					window.location = window.location;
				});
			}
			else
			{
				if(data.msg)
				{
					layer.msg(data.msg);
				}
				else
				{
					layer.msg('操作失败');
				}
			}
		}
	};
	makeAjax('post',url,data,callback);
}

</script>
<body>
<div class="wrapper">
	<div class="crumbs"><span style="margin: 0 5px;color: #333;font-size: 14px;">邀请管理</span></div>
	
	<div class="container_tit clearfix mb20 ft14">
	
	<form id="savedata">
		<input type="hidden" name="id" value="{$gonggao[id]}" />
		<h2 class="form_tit">邀请奖励</h2>
		<div class="form_item clearfix">
		    <p class="clearfix">
				<label class="name">一层奖励：</label>
				首个注册好友，投资&nbsp;<input type="text" id="tz1" name="tz1" value="{$list['1'][touzi]}" class="text w130" />&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;奖励邀请人&nbsp;<input type="text" id="jl1" name="jl1" value="{$list['1'][jiangli]}" class="text w130" />&nbsp;元
			</p>
		</div>
		<div class="form_item clearfix">
		    <p class="clearfix">
				<label class="name">二层奖励：</label>
				邀请5位注册好友，每人单笔投资&nbsp;<input type="text" id="tz2" name="tz2" value="{$list['2'][touzi]}" class="text w130" />&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;奖励邀请人&nbsp;<input type="text" id="jl2" name="jl2" value="{$list['2'][jiangli]}" class="text w130" />&nbsp;元
			</p>
		</div>
		<div class="form_item clearfix">
		    <p class="clearfix">
				<label class="name">三层奖励：</label>
				邀请人永久享受被邀请人投资带来的收益&nbsp;&nbsp;&nbsp;&nbsp;奖励邀请人，被邀请人投资额的&nbsp;<input type="text" id="jl3" name="jl3" value="{$list['3'][jiangli]}" class="text w130" />&nbsp;%
			</p>
		</div>
		
        <div class="form_item clearfix" style="padding-top: 20px;>
			<p class="clearfix">
			    <input type="button" class="btnblue" value="提交" onclick="saveInfo();" />
			</p>
		</div>
    </form>
    </div>
</div>
{template foot}